#include "parkingmanagebyownerwidget.h"
#include "ui_parkingmanagebyownerwidget.h"
#include "parkingapplywidget.h"
#include "myparkingwidget.h"

ParkingManageByOwnerWidget::ParkingManageByOwnerWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ParkingManageByOwnerWidget)
{
    ui->setupUi(this);
    initWindow();
}

ParkingManageByOwnerWidget::~ParkingManageByOwnerWidget()
{
    delete ui;
}

/**
 * @brief 初始化窗体
 */
void ParkingManageByOwnerWidget::initWindow()
{
    this->setWindowTitle("车位管理[车主]");
}

/**
 * @brief 车位申请模块
 */
void ParkingManageByOwnerWidget::on_btn_parking_apply_clicked()
{
    ParkingApplyWidget *widget = new ParkingApplyWidget();
    widget->show();
}

/**
 * @brief 我的车位模块
 */
void ParkingManageByOwnerWidget::on_btn_my_parking_clicked()
{
    myParkingWidget *widget = new myParkingWidget();
    widget->show();
}

